package com.cxg.allsys.expertsys.service;

import com.cxg.allsys.expertsys.pojo.Article;
import com.cxg.allsys.expertsys.pojo.Comment;
import com.cxg.allsys.expertsys.pojo.TExpert;

import java.util.List;

public interface IExpertsysService {
    //登录
    public TExpert expertsysLogin(String phone , String password);
    //根据ID查找数据
    public TExpert expertsysID(Integer expertid);
    //重置密码
    public boolean resetpassword(Integer expertid,String password ,String newpassword);
    //查询文章数据
    public List<Article> selectdata();
    //根据ID查询文章内容
    public Article neirongdata(Integer id);
    //添加评论
    public String addpinglun(Integer article_id,Integer expert_id,String c_content,String is_recommend);
    //查询评论数据
    public List<Comment> selectComment(Integer expert_id);
    //添加评论
    public String delectCommernt(Integer c_id);
}
